<template>
  <div class="register-box">
    <!-- 背景图片 -->
    <div id="bgImg"></div>
    <!-- 头顶图标 -->
    <a href="javascript:;" class="el-icon-arrow-left"></a>
    <RegisterForm />
  </div>
</template>

<script>
// 引入注册表单域组件
import RegisterForm from './RegisterForm'

export default {
  name: 'Register',
  components: {
    RegisterForm
  }
}  
</script>

<style lang="scss" scoped>
.register-box {
  /* 背景图片 */
  #bgImg {
    position: fixed;
    z-index: -99;
    width: 100%;
    height: 100%;
    background: url(~@/assets/img/register/bg_img.jpg) no-repeat center;
    background-size: cover;
  }
  /* 屏幕小于481px时头顶出现向左小图标 */
  a {
    display: inline-block;
    position: absolute;
    left: 0px;
    top: 0px;
    text-decoration: none;
    font-size: 30px;
    text-align: center;
    line-height: 44px;
    width: 44px;
    height: 44px;
    color: rgb(108, 160, 208);
  }

/* 屏幕<768px时背景切换为渐变色 */
  @media screen and (max-width: 768px) {
    #bgImg {
      background-image: linear-gradient(to bottom, #c4c5c7 0%, #dcdddf 52%, #ebebeb 100%);
    }
}

/* 屏幕>=481px时隐藏头顶向左图标 */
  @media screen and (min-width: 481px) {
      /deep/ .el-icon-arrow-left:before {
        content: '';
      }
    }
}
</style>
